package Screens;

import java.awt.Graphics2D;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;

import Botao.BotaoSimples;
import Main.GamePanel;

public class TelaCreditos extends Screen {

	BotaoSimples botaoVoltar;
	public TelaCreditos(int X, int Y, int Width, int Height, String fileNome) {
		super(X, Y, Width, Height, fileNome);
		botaoVoltar = new BotaoSimples(820, 5, "/botoes/botao_exit.png", "/botoes/botao_exit_over.png");
	}

	public TelaCreditos() {
		// TODO Auto-generated constructor stub
	}

	@Override
	public void Draw(Graphics2D dbg) {
		dbg.drawImage(fundo, 0, 0, null);
		botaoVoltar.Draw(dbg);

	}

	@Override
	public void Update(long diffTime) {
		// TODO Auto-generated method stub

	}

	@Override
	public void tratadorTecladoPress(KeyEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void tratadorTecladoReleased(KeyEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void mouseMoved(MouseEvent e) {
		// TODO Auto-generated method stub
		botaoVoltar.mouseMoved(e);
	}

	@Override
	public void mouseDragged(MouseEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void mouseReleased(MouseEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void mousePressed(MouseEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void mouseExited(MouseEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void mouseEntered(MouseEvent e) {
		// TODO Auto-generated method stub

	}

	@SuppressWarnings("static-access")
	@Override
	public void mouseClicked(MouseEvent e) {
		// TODO Auto-generated method stub
		botaoVoltar.mouseClicked(e);
		if(botaoVoltar.selecionada){
			botaoVoltar.selecionada= false;
			botaoVoltar.mouseOver= false;
			GamePanel.instance.TELA_ATIVA = GamePanel.instance.TELA_INICIAL;
		}
	}

	@Override
	public void setaOpcao(int opcao) {
		// TODO Auto-generated method stub

	}

}
